<style lang="scss">
  @import 'index';
</style>

<template>
  <div class="ga-container">
    <div class="ga-product-half">
      <div class="banner">
        <img mode="widthFix" src="http://ga-1255639017.file.myqcloud.com/images/shop/banner1.jpg" alt="">
      </div>

      <ul class="ga-group-list ga-media-list">
        <li v-for="(item,index) in data" :key="index">
          <a class="item" :href="'../shopHalf/main?id='+item.seid">
            <div class="item-media">
              <image class="img-box" mode="aspectFill" :src="item.icon"></image>
            </div>
            <div class="item-inner">
              <p class="title">{{item.goods_name}}</p>
              <p class="p1">{{item.desc}}</p>
              <p class="p2">已抢{{item.sale_num}}件</p>
              <p class="p3">
                ¥ {{item.shop_price}}
                <span>¥ {{item.market_price}}</span>
              </p>
              <div class="btn orange">第二件5折</div>
            </div>
          </a>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      data: []

    }
  },
  methods: {
     async load () {
        this.$_util.ajax.post('https://guo-a.com/mapi/half/getlist').then((res)=>{
          console.log(res)
          if(res.code === 200){
             this.data = res.data
          }
        })
     }
  },

  created () {

  },
  mounted () {
     this.load()
  }
}
</script>
